//
//  CalendarViewController.m
//  Arts1
//
//  Created by 孤星晨宇 on 15/10/7.
//  Copyright © 2015年 Arts1. All rights reserved.
//

#import "CalendarViewController.h"
#import "CalenderAddTableViewController.h"
#import "AllHeader.h"

@interface CalendarViewController ()

// 模糊视图
@property (nonatomic, strong) UIVisualEffectView *visualeffectview;

// 添加到日历选择时间卡片
@property (nonatomic, strong) CalenderAddTableViewController *calenderBVC;

// 返回按钮
@property (nonatomic, strong) UIButton *cancel;

@end

@implementation CalendarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor clearColor];
    [self createVisualEffectView];
    [self createCalendarTableView];
}

// 毛玻璃效果
- (void)createVisualEffectView{
    UIVisualEffect *lightBlurEffect = [UIBlurEffect effectWithStyle:(UIBlurEffectStyleLight)];
    _visualeffectview = [[UIVisualEffectView alloc] initWithEffect:lightBlurEffect];
    _visualeffectview.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
    _visualeffectview.alpha = 1.0;
    [self.view addSubview:_visualeffectview];
}

- (void)createCalendarTableView{
    /**
     考试时间选项卡
     */
    _calenderBVC = [[CalenderAddTableViewController alloc] initWithStyle:(UITableViewStyleGrouped)];
    _calenderBVC.ID = _ID;
    _calenderBVC.tableView.frame = CGRectMake(20, 160 ,SCREEN_WIDTH - 40,200);
    [UIView viewWideForShadowColor:_calenderBVC.view];
    _calenderBVC.tableView.layer.cornerRadius = 10;
    
    [self.view addSubview:_calenderBVC.view];

}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
